home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
273_01.zip
/
GETCUR.CC
< prev
next >
Wrap
Text File
|
1993-04-04
|
429b
|
17 lines
#include <dos.h>
get_cur(int *row, int *col)
/* return the current cursor location into row,col.
If the cursor is hidden return value will be 1 else 0 will be returned.
*/
{
union REGS inregs;
inregs.h.bh=0; inregs.h.ah=3;
int86(0x10,&inregs,&inregs);
*row=inregs.h.dh;
*col=inregs.h.dl;
if(inregs.h.ch & 0x20)
return(1);
else
return(0);
}